<?php
declare(strict_types=1);
/**
 * 供应商管理员服务
 */
namespace Service\UserService;
use Service\BaseService;
use App\Model\PssModel\ManagerSupplier;
class SupplierUserService extends BaseService
{
    /**
     * 获取供应商管理员ID
     * @param unknown $userId
     */
    public function queryUserBySystemUserId($userId) 
    {
        $user = ManagerSupplier::instance()->where('system_user_id',$userId)->get()->toArray();
        return array_column($user, 'supplier_id');
    }
}